package test;

public class Texy {
	public static void main(String[] args) {
		String a = "001002005004";
//		System.out.println(a.startsWith("002"));
		byte[] bytes = new byte[] {0,1,2,5,45,55,8,45,22,15,15,41,5,1,0,4,0,40,4,0};
		StringBuffer buf = new StringBuffer(bytes.length * 2);
		for (int i = 0; i < bytes.length; i++) {
			if (((int) bytes[i] & 0xff) < 0x10) {
				buf.append("0");
			}
			buf.append(Long.toString((int) bytes[i] & 0xff, 16));
		}
		System.out.println(buf.toString());
	}
}
